import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/home.vue'
import Detail from '@/pages/detail/detail.vue'
import dataScreen from '@/pages/dataScreen/datascreen.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/detail/:schoolname',
      name: 'detail',
      component: Detail,
      props: true
    },
    {
      path: '/datascreen',
      name: 'datascreen',
      component: dataScreen,
      props: true
    }
  ]
})
